#ifndef CONTROLLED_H
#define CONTROLLED_H

#include <QObject>
#include <QDebug>
#include "operation.h"

class ControlLED : public Operation
{
    Q_OBJECT
public:
    explicit ControlLED(QObject *parent = nullptr);

private:
    int         m_nChannel;
    int         m_nValue;

public:
    virtual void run() override;

public:
    virtual void writeXML(QXmlStreamWriter& writer) override;
    virtual void readFromXML(QXmlStreamReader& reader) override;

    int nChannel() const;
    void setNChannel(int newNChannel);
    int nValue() const;
    void setNValue(int newNValue);
};

#endif // CONTROLLED_H
